<?php
//
// +------------------------------------------------------------------------+
// | Gecko Framework                                                        |
// +------------------------------------------------------------------------+
//

/**
 * Interface for Form Renderer
 *
 * @package Gecko.Form.Renderer;
 * @author Christopher Valderrama <valderrama.christopher@gmail.com>
 * @copyright Copyright (c) 2008
 * @version $Id$v1.0$ 2008
 * @access public
 **/
interface Gecko_Form_Renderer_Interface {
	/**
	 * Begins drawing the form
	 *
	 * @param string $name The form name
	 * @param string $url The form url
	 * @param string $method The form Method
	 * @param string $enctype The Form Enc Type
	 */
	public function beginForm($name, $url, $method, $enctype);
	/**
	 * Ends the form
	 */
	public function endForm();
	/**
	 * Adds a new item to the form
	 *
	 * @param string $name The item name or label
	 * @param string $html The Field HTML Code
	 * @param array $messages The field Messages
	 */
	public function addItem( $name, $html, $messages = null );
	/**
	 * Adds simple html code to the form
	 *
	 * @param string $html The html to add
	 */
	public function addHTML( $html );
}
?>